module.exports = (app) => {
    const { STRING, INTEGER } = app.Sequelize;

    const AwardKind = app.model.define(
      "award-kind", // 更改为更合适的表名
      {
        kindTitle: {
          type: STRING(255),
          allowNull: false,
        },
        isLatest: { // 新增字段
          type: INTEGER,
          allowNull: false,
          defaultValue: 0, // 默认值为0
        },
        kindId: { // 设置为主键并自增
          type: INTEGER,
          primaryKey: true,
          autoIncrement: true,
          allowNull: false,
        }
      },
      {
        timestamps: true,
        underscored: false,
      }
    );

    return AwardKind;
};